
package com.joysuch.wwyt.risk.bean;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotEmpty;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.risk.entity.RiskPointEvaluationJhaItem;
import lombok.Data;

//风险点JHA评估提交 bean
@Data
public class RiskJhaEvaluationBean {

    @NotNull(field = "ID")
    private Long id;
    // 风险区域ID
    private Long riskDistrictId;
    private String jobActivity;
    @NotNull(field = "分析人")
    private Long analyzeUserId;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(field = "分析时间")
    private Date analyzeTime;
    // @NotNull(field = "风险级别")
    private Integer riskLevel;
    // 受控号
    // @NotNull(field = "受控号")
    private String inControlCode;

    private Long jobId;
    private boolean template;
    @NotNull(field = "分析项目列表")
    @NotEmpty
    List<RiskPointEvaluationJhaItem> items;

    private String riskSources;

}
